import request from "@/utils/request";

// 查询待办事项列表
export function listBizDaibanIng(query) {
  return request({
    url: "/biz/bizDaibanIng/list",
    method: "get",
    params: query,
  });
}

// 查询待办事项详细
export function getBizDaibanIng(id) {
  return request({
    url: "/biz/bizDaibanIng/" + id,
    method: "get",
  });
}

// 新增待办事项
export function addBizDaibanIng(data) {
  return request({
    url: "/biz/bizDaibanIng",
    method: "post",
    data: data,
  });
}

// 修改待办事项
export function updateBizDaibanIng(data) {
  return request({
    url: "/biz/bizDaibanIng",
    method: "put",
    data: data,
  });
}

// 删除待办事项
export function delBizDaibanIng(id) {
  return request({
    url: "/biz/bizDaibanIng/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizDaibanIng/findMaxSort",
    method: "get",
  });
}
// 导出待办事项
export function exportBizDaibanIng(query) {
  return request({
    url: "/biz/bizDaibanIng/export",
    method: "get",
    params: query,
  });
}
